﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WPFLib.Misc;
using WPFLib.Navigation;

namespace NavigationDemo
{
    public class Controller2 : PropertyChangedHelper, INavigationNode
    {
        public Controller2()
        {
            Child = new ChildController();
        }

        public ChildController Child
        {
            get;
            private set;
        }

        public string Header
        {
            get
            {
                return "Control2";
            }
        }

        #region INavigationNode Members

        public void RestoreState(NavigationState state)
        {
            Child.RestoreState(state);
        }

        public NavigationNodeState[] LocalState
        {
            get { return null; }
        }

        #endregion
    }
}
